package com.jfl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.jfl.base.BaseMapper;
import com.jfl.model.SysPost;

/**
 * <一句话功能简述>
 *  
 * @author  赵炎
 * @version  [V1.00, 2019年1月13日]
 * @since V1.00
 */
public interface SysPostMapper extends BaseMapper<SysPost>
{

    List<Long> selectPostsByUserId(Long userId);

    @Select("select * from tbl_sys_post where post_name = #{postName}")
    SysPost selectByPostName(String postName);
    
    @Select("select * from tbl_sys_post where post_code = #{postCode}")
    SysPost selectByPostCode(String postCode);
    
}
